package com.googlecode.eventio.examples.chat;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.concurrent.Callable;

public class StringInputResource implements Callable<String> {

	private final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

	@Override
	public String call() {
		try {
			return reader.readLine();
		} catch (IOException e) {
			throw new IllegalStateException(e);
		}
	}

}
